package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Video;
import org.bson.types.ObjectId;

import java.util.List;

public interface VideoApi {
    String save(Video video);

    List<Video> findMovementsByPids(List<Long> vids);

    List<Video> queryVideoList(int i, int pagesize);

    Integer videoLike(ObjectId id, CommentType like);

    Integer videoDisLike(ObjectId id, CommentType like);

    void videoLove(Long uid, CommentType love);

    void videoDisLove(Long uid, CommentType love);

    List<Video> selectVideos(Long uid, Integer page, Integer pagesize, String sortOrder, String sortProp);
}
